x86: tighten page table owner checking in do_mmu_update()
authorJan Beulich <jbeulich@suse.com>
Tue, 25 Nov 2014 09:07:09 +0000 (10:07 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Nov 2014 09:07:09 +0000 (10:07 +0100)
commitdc419f0a3752032ab00124dc55609d9231e53128
tree4f9f096deef86f7ebb918d7694d54c16f26ef85e
parent0aabd10525326edfe5098c2ec5bfe05db7732c32
x86: tighten page table owner checking in do_mmu_update()

MMU_MACHPHYS_UPDATE, not manipulating page tables, shouldn't ignore
a bad page table domain being specified.

Also pt_owner can't be NULL when reaching the "out" label, so the
respective check can be dropped.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/mm.c